{extend name="layout:layout" /}

{block name="title"}UEditor使用Demo{/block}

{block name="stylesheet"}
<link type="text/css" rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css">
{/block}

{block name="body"}
<div style="padding: 15px;">
    <div class="panel panel-success">
        <div class="panel-heading">UEditor使用Demo</div>
        <div class="panel-body">
            <form class="layui-form" action="{:url('Always/uEditor')}">
                <div class="layui-form-item">
                    <label class="layui-form-label">名称</label>
                    <div class="layui-input-block">
                        <input type="text" name="name" required lay-verify="required" placeholder="请输入名称"
                               autocomplete="off" class="layui-input" lay-verType="tips" value="{$list.name}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">内容</label>
                    <div class="layui-input-block">
                        <!--UEditor-->
                        <script id="editor" type="text/plain" style="width:100%;height:450px;">{$list.content|htmlspecialchars_decode}</script>
                        <!--UEditor-->
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"></label>
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
{/block}
{block name="javascript"}
<script type="text/javascript" src="__STATIC__/backend/javascript/dw_form_submit.js"></script>
<!--UEditor-->
<script type="text/javascript" charset="utf-8" src="/static/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="/static/ueditor/ueditor.all.min.js"> </script>
<script type="text/javascript" charset="utf-8" src="/static/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" src="__STATIC__/backend/javascript/dw_ueditor.js"></script>
<!--UEditor-->
{/block}